package com.cwm.test.composite.general.transparent;

public abstract class Component {

    protected String name;

    public Component(String name){
        this.name = name;
    }

    public abstract String operation();

    public boolean addChild(Component component){
        throw new UnsupportedOperationException("addChild not supported!");
    }

    public boolean removeChild(Component component){
        throw new UnsupportedOperationException("removeChild not supported!");
    }

    public boolean getChild(int index){
        throw new UnsupportedOperationException("getChild not supported!");
    }
}
